package com.dlsy.ygj.dao.vindicateData.impl;

import java.util.List;

import net.taobaoge.common.framework.dao.impl.BaseDAOImpl;

import org.hibernate.Criteria;
import org.hibernate.criterion.Restrictions;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import com.dlsy.ygj.dao.vindicateData.IWheelBellGroupinfoDAO;
import com.dlsy.ygj.entity.WheelBellGroup;

public class WheelBellGroupinfoDAO extends BaseDAOImpl<WheelBellGroup>
		implements IWheelBellGroupinfoDAO {

	public List<WheelBellGroup> findWheelBellGroupByName(String value) {
		Criteria criteria = getSession().createCriteria(WheelBellGroup.class);
		criteria.add((Restrictions.like("wheelBellGroupName", value)));
		List<WheelBellGroup> WheelBellGroupList = criteria.list();
		if (WheelBellGroupList != null && WheelBellGroupList.size() > 0) {
			return WheelBellGroupList;
		}
		return null;
	}
}
